<template>
    <ul>
        <li v-for="(doctor, index) in doctorArr" :key="index">
            {{ doctor.name }}--{{ doctor.time }}
        </li>
    </ul>
</template>

<script>
export default {
    name: "Docotr",
    data() {
        return {
            doctorArr: [
                { name: "牙医", time: 2 },
                { name: "皮肤科医生", time: 4 },
            ],
        };
    },
};
</script>

<style></style>
